home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10838 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  841 b 

  1. Path: EU.net!sun4nl!xs4all!falstaff
  2. From: falstaff@xs4all.nl (Falstaff)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: goto(x,y) ?
  5. Date: 20 Mar 1996 10:03:43 GMT
  6. Organization: XS4ALL, networking for the masses
  7. Distribution: inet
  8. Message-ID: <4iol5v$8sb@news.xs4all.nl>
  9. References: <NEWTNews.826227097.15421.mischap@ttserver> <4io7uq$fsl@eldorado.mirea.ac.ru>
  10. NNTP-Posting-Host: xs1.xs4all.nl
  11. X-Newsreader: NN version 6.5.0 #666 (NOV)
  12.  
  13. eugene@exodus.mirea.ac.ru writes:
  14.  
  15. >I prefer using ANSI sequenses
  16.  
  17. Like this:
  18.  
  19. void GotoXY(int x,int y)
  20. {
  21.    printf("\033[%d,%dH",y,x);
  22. }
  23.  
  24. void ClearScreen(void)
  25. {
  26.    printf("\033[H\033[2J");
  27. }
  28. --
  29. The famous GIICM now on line:  http://www.xs4all.nl/~falstaff/GIICM.html
  30. ------------------------------------------------------------------------
  31. Frank A. Vorstenbosch        +31-(70)-355 5241        falstaff@xs4all.nl
  32.